package com.teemor.common.kafka.fc;

import com.teemor.common.bean.model.EmailModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @Description:
 * @author zhoulk
 * @date: 2020/3/3
 */
@FeignClient(value = "resource", path = "/email")
public interface IEmailFc {

    @PostMapping(value = "/emailCode", consumes = MediaType.APPLICATION_JSON_VALUE)
    Map<String,Object> sendEmailCode(@RequestBody EmailModel emailModel);
}
